<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <title>Document</title>
    <style>
        .active{
            color: yellow;
        }
    </style>
</head>

<body>
    <div id="app">
        <!-- <p :class="{active: isActive, line:isLine}">helloworld</p> -->
        <h3 :style="[style1,style2]">{{a}}</h3>
    </div>
    <script>
        // const vm=new Vue({
        //     el : "#app",
        //     data : {
        //         isActive : true,
        //         isLine : true
        //     }
        // })
        const vm=new Vue({
            el : "#app",
            data : {
                a:'tzh',
                style1:{"background-color":"red"},
                style2:{"width":"200px","height":"100px"},
            }
        })
    </script>
</body>
</html>